package com.library.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BookReviews implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long userId;

    private String username;

    private Long bookId;

    private String bookTitle;

    private String content;

    // 1-5 （5分最好）
    private Integer rating;
    // 父评论id 如果没有父评论，则为0
    private Long parentReviewId;

    // 创建时间
    private LocalDateTime createTime;


}
